package com.molichuxing.services.infrastructure.service;

import java.util.List;
import java.util.Map;

import com.molichuxing.framework.service.RootService;
import com.molichuxing.services.infrastructure.dto.request.create.StockStoreCreateDto;
import com.molichuxing.services.infrastructure.dto.response.StockStoreDto;

/**
 * 
 * @author liyg
 * 门店仓库服务
 * 2019-08-21
 *
 */
public interface StockStoreService extends RootService {

  /**
   * 获取门店仓库信息
   * 
   * @param stockId
   * @return
   */
  StockStoreDto getStockStore(Integer stockId);
  
  /**
   * 获取门店仓库信息
   * 
   * @param stockIds
   * @return
   */
  Map<Integer,StockStoreDto> getStockStores(List<Integer> stockIds);
  
  
  /**
   * 获取门店仓库信息
   * 
   * @param storeIds
   * @return
   */
  Map<Integer,StockStoreDto> getStockStoresByStoreIds(List<Integer> storeIds);
  
  /**
   * 获取仓库ids
   * @param storeIds
   * @return
   */
  List<Integer> getStockIds(List<Integer> storeIds);
  
  /**
   * 获取门店仓库信息
   * 
   * @param storeId
   * @return
   */
  StockStoreDto getStockStoreByStoreId(Integer storeId);
  
  /**
   * 保存门店仓库信息
   * 
   * @param createDto
   * @return
   */
  Boolean create(StockStoreCreateDto createDto);

  /**
   * 得到所有门店关系
   * @return
   */
  Map<Integer, Integer> getAllStockStore();
}
